package com.yhd.observer;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author yhd
 * @email yinhuidong1@xiaomi.com
 * @description TODO
 * @since 2021/5/22 上午1:30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Mm {

    private List<TianGou> tianGous;

    public void sendEvent(){
        for (TianGou gou : tianGous) {
            gou.acceptEvent("今天休息，不出去了");
        }
    }
}
